home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / gadget / r3floatg.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  3.9 KB  |  155 lines

  1.  
  2. // JavaScript wrapper for r3floatg.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_R3FLOATGADGET_H = 1;
  7. include("oops/r3gadget.js")
  8.  
  9.  
  10. var R3CLID_FLOATGADGET = 68;
  11.  
  12.  
  13.  
  14.  
  15. // Description: For internal mapchanges.    
  16.  
  17. R3FLGM_SLIDE = 68002;
  18.  
  19. function mR3FLGM_SLIDE() {
  20.   DoA(this.r3obj, 68002, 0, R3TID_INTEGER, 0);
  21. }
  22.  
  23.  
  24.  
  25.  
  26. R3FLGA_Float = 68500;
  27. function SetR3FLGA_Float(value) {
  28.   R3Set(this.r3obj, R3FLGA_Float, value, R3TID_FLOAT, 0); 
  29. }
  30.  
  31. function GetR3FLGA_Float() {
  32.   return R3Get(this.r3obj, R3FLGA_Float, R3TID_FLOAT, 0); 
  33. }
  34.  
  35. R3FLGA_Float2 = 68501;
  36. function SetR3FLGA_Float2(value) {
  37.   R3Set(this.r3obj, R3FLGA_Float2, value, R3TID_FLOAT, 0); 
  38. }
  39.  
  40. function GetR3FLGA_Float2() {
  41.   return R3Get(this.r3obj, R3FLGA_Float2, R3TID_FLOAT, 0); 
  42. }
  43.  
  44. R3FLGA_Display2Floats = 68502;
  45. function SetR3FLGA_Display2Floats(value) {
  46.   R3Set(this.r3obj, R3FLGA_Display2Floats, value, R3TID_BOOLEAN, 0); 
  47. }
  48.  
  49. R3FLGA_UnitConverter = 68503;
  50. function SetR3FLGA_UnitConverter(value) {
  51.   R3Set(this.r3obj, R3FLGA_UnitConverter, value, R3TID_OBJECT, 0); 
  52. }
  53.  
  54. R3FLGA_UnitType = 68504;
  55. function SetR3FLGA_UnitType(value) {
  56.   R3Set(this.r3obj, R3FLGA_UnitType, value, R3TID_INTEGER, 0); 
  57. }
  58.  
  59. R3FLGA_String = 68505;
  60. function SetR3FLGA_String(value) {
  61.   R3Set(this.r3obj, R3FLGA_String, value, R3TID_STRING, 0); 
  62. }
  63.  
  64. R3FLGA_NumDecimals = 68506;
  65. function SetR3FLGA_NumDecimals(value) {
  66.   R3Set(this.r3obj, R3FLGA_NumDecimals, value, R3TID_INTEGER, 0); 
  67. }
  68.  
  69. function GetR3FLGA_NumDecimals() {
  70.   return R3Get(this.r3obj, R3FLGA_NumDecimals, R3TID_INTEGER, 0); 
  71. }
  72.  
  73. R3FLGA_Min = 68508;
  74. function SetR3FLGA_Min(value) {
  75.   R3Set(this.r3obj, R3FLGA_Min, value, R3TID_FLOAT, 0); 
  76. }
  77.  
  78. function GetR3FLGA_Min() {
  79.   return R3Get(this.r3obj, R3FLGA_Min, R3TID_FLOAT, 0); 
  80. }
  81.  
  82. R3FLGA_Max = 68509;
  83. function SetR3FLGA_Max(value) {
  84.   R3Set(this.r3obj, R3FLGA_Max, value, R3TID_FLOAT, 0); 
  85. }
  86.  
  87. function GetR3FLGA_Max() {
  88.   return R3Get(this.r3obj, R3FLGA_Max, R3TID_FLOAT, 0); 
  89. }
  90.  
  91. R3FLGA_NoSlider = 68510;
  92. function SetR3FLGA_NoSlider(value) {
  93.   R3Set(this.r3obj, R3FLGA_NoSlider, value, R3TID_BOOLEAN, 0); 
  94. }
  95.  
  96. function GetR3FLGA_NoSlider() {
  97.   return R3Get(this.r3obj, R3FLGA_NoSlider, R3TID_BOOLEAN, 0); 
  98. }
  99.  
  100. R3FLGA_UseFixedUnit = 68512;
  101. function SetR3FLGA_UseFixedUnit(value) {
  102.   R3Set(this.r3obj, R3FLGA_UseFixedUnit, value, R3TID_BOOLEAN, 0); 
  103. }
  104.  
  105. R3FLGA_FixedUnit = 68513;
  106. function SetR3FLGA_FixedUnit(value) {
  107.   R3Set(this.r3obj, R3FLGA_FixedUnit, value, R3TID_INTEGER, 0); 
  108. }
  109.  
  110. var R3FLGA_UseScaleCanvas = 68514; // Boolean
  111. R3FLGA_Relative = 68515;
  112. function GetR3FLGA_Relative() {
  113.   return R3Get(this.r3obj, R3FLGA_Relative, R3TID_FLOAT, 0); 
  114. }
  115.  
  116. R3FLGA_Relative2 = 68516;
  117. function GetR3FLGA_Relative2() {
  118.   return R3Get(this.r3obj, R3FLGA_Relative2, R3TID_FLOAT, 0); 
  119. }
  120.  
  121.  
  122.  
  123. function r3Floatgadget () { 
  124.    this.base = r3God;
  125.    if(arguments.length) {
  126.       this.base(R3CLID_FLOATGADGET, arguments);
  127.    }
  128.    // Methods
  129.    this.SLIDE=mR3FLGM_SLIDE;
  130.  
  131.    // Attributes
  132.    this.GetFloat=GetR3FLGA_Float;
  133.    this.SetFloat=SetR3FLGA_Float;
  134.    this.GetFloat2=GetR3FLGA_Float2;
  135.    this.SetFloat2=SetR3FLGA_Float2;
  136.    this.SetDisplay2Floats=SetR3FLGA_Display2Floats;
  137.    this.SetUnitConverter=SetR3FLGA_UnitConverter;
  138.    this.SetUnitType=SetR3FLGA_UnitType;
  139.    this.SetString=SetR3FLGA_String;
  140.    this.GetNumDecimals=GetR3FLGA_NumDecimals;
  141.    this.SetNumDecimals=SetR3FLGA_NumDecimals;
  142.    this.GetMin=GetR3FLGA_Min;
  143.    this.SetMin=SetR3FLGA_Min;
  144.    this.GetMax=GetR3FLGA_Max;
  145.    this.SetMax=SetR3FLGA_Max;
  146.    this.GetNoSlider=GetR3FLGA_NoSlider;
  147.    this.SetNoSlider=SetR3FLGA_NoSlider;
  148.    this.SetUseFixedUnit=SetR3FLGA_UseFixedUnit;
  149.    this.SetFixedUnit=SetR3FLGA_FixedUnit;
  150.    this.GetRelative=GetR3FLGA_Relative;
  151.    this.GetRelative2=GetR3FLGA_Relative2;
  152. }
  153.  
  154. r3Floatgadget.prototype=new r3Gadget;
  155. // r3floatg.h_H